cmake_minimum_required( VERSION 3.0 )

project( Heartbeat )

set( CMAKE_CXX_COMPILER "g++")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )

find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS})

include_directories( ${PROJECT_SOURCE_DIR} )
aux_source_directory( ${PROJECT_SOURCE_DIR} SRC_LIST)

add_executable( ${PROJECT_NAME} Heartbeat.cpp ${SRC_LIST})

target_link_libraries( ${PROJECT_NAME} ${OpenCV_LIBS})